This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: JavaScript and multiple value field ~Keiko Cisjipysonakol 29.Dec.03 06:29 PM a Web browser Domino Designer All ReleasesAll Platforms
Yes, It is much easier use formula, but all my validation is in JavaScript.
I got this part. Here is my code
var f = document.forms[0]
endDate = new Date(f.EndDate.value);
startDate= new Date(f.StartDate.value);
alert(endDate);
aDay = 24*60*60*1000;
alert(aDay);
dbd= Math.floor((endDate-startDate)/aDay);
then = new Date(endDate.getTime()-(dbd*aDay));
var dateString = "";
for (i=then.getTime();i<endDate.getTime();i+=aDay) {
date = new Date(i);
year = date.getYear();
dateString = dateString + ", " + (date.getMonth()+1)+'/'+date.getDate()+'/'+year;
}
// alert(dateString);
f.difference.value=dateString;
I have another problem. I got days in the format 1/1/2003, 1/2/2003 and I need to populate days like 01/01/2003, 01/02/2003.
Thanks again for your help.